package com.zxy.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxy.pojo.entity.ClueTrackRecord;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClueTrackRecordMapper extends BaseMapper<ClueTrackRecord> {

    /**
     * 插入跟进记录
     * @param clueTrackRecord
     * @return 影响行数
     */
    int insert(ClueTrackRecord clueTrackRecord);

    /**
     * 根据线索ID查询跟进记录列表
     * @param clueId
     * @return 跟进记录列表
     */
    List<ClueTrackRecord> selectByClueId(Long clueId);


}
